{tpl head}
<form method="Post" name="k_form" action="?c={$classname}&a={$form_action}">
    <table id="senfe" class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
        <thead><tr class="n_bt"><td colspan="2" align="center">工作小助手管理系统</td></tr>
        <tr><th height="28" colspan="2" class="thbt">【{$title}】</th></tr>
        </thead>
        <tbody id="bstable">
        <tr>
            <td width="13%" height="30" align="right">等级名称：</td>
            <td width="87%">
                <input name="group_name" type="text" class="input400" value="{$oj->group_name}"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">折扣率：</td>
            <td width="87%">
                <input name="discount" type="text" class="input400" value="{$oj->discount}" /></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">最小经验：</td>
            <td width="87%">
                <input name="minexp" type="text" class="input400" value="{$oj->minexp}"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">最大经验：</td>
            <td width="87%">
                <input name="maxexp" type="text" class="input400" value="{$oj->maxexp}"/></td>
        </tr>

        <tr>
            <td height="35" colspan="2" align="center" >
                <input name="c" type="hidden" value="{$classname}" />
                <input name="a" type="hidden" value="{$form_action}" />
                <input name="id" type="hidden" value="{$id}" />
                <input name="add" id="submit" class="button" type="submit" value="确认" />
                &nbsp;<input name="" type="reset" class="button" value="重置" />
            </td>
        </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    $(function(){
        $("#st1").on('change',function(){
            change($(this).val());
        });
        function change(id){
            $.getJSON('index.php?a=get_street&id='+id, function(data){
                var html='';
                if( (data)==null){
                    $("#st2").html(html);
                    return false;
                }
                $.each(data, function(index, item){
                    html+='<option value="'+item.id+'">'+item.name+'</option>';
                })
                $("#st2").html(html);
            })
        }
    });
</script>
</body>
</html>